'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    const { INTEGER } = Sequelize;
    await queryInterface.createTable("sys_user_role", {
      userId: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        comment: "用户ID",
      },
      roleId: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        comment: "角色ID",
      },
    })
  },

  down: async (queryInterface) => {
    await queryInterface.dropTable("sys_user_role");
  },
};
